<template>
  <p v-for="(item,index) in arr" :key="index">
  索引值：{{ index }} --- 元素的内容是：{{ item }}
  </p>
  <v-if></v-if>
  <v-if></v-if>
</template>

<script setup>
const arr = ["HTML","CSS","JavaScipt","JQuery","Vue"];

import VIf from './VIf.vue'
</script>

<style>
</style>